package com.bw.liveplay.common.mvvm.mondel

import com.bw.liveplay.common.entity.BaseEntity
import com.bw.liveplay.common.network.Api
import com.bw.liveplay.common.utils.ApiService
import io.reactivex.Observable

/**
 * @author KK
 * @description:
 * @date :2021/11/12 9:55
 *
 */
class TagListModel : BaseModel() {

    fun requestTagList(offset : Int,
                       pageCount : Int,
                        tagId : Int,
                        tagType : String,
                        userId : Int) : Observable<BaseEntity>{
        var requestTagList = ApiService.instance().getRetrofit()!!.create(Api::class.java)
            .requestTagList(offset, pageCount, tagId, tagType, userId)

        return changeFun(requestTagList)

    }
}